<template>
  <div>
    <h1>这是about的孙子组件 接收到的来自about的数据是{{ $attrs.msg }}</h1>
    <button @click="getHandler">调用祖父组件的方法</button>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    getHandler() {
      this.$emit("handler");
    },
  },
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
